#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>


void* my_memcpy(void* arr2,void* arr,size_t sz)
{
	void* ret = arr2;
	while (sz--)
	{
		*(char*)arr2 = *(char*)arr;
		arr2 = (char*)arr2 + 1;
		arr = (char*)arr + 1;
	}
	return ret;
}

int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,0 };
	int arr2[10] = { 0 };
	my_memcpy(arr2, arr, 16);
	return 0;
}